- 
                Notifications
    You must be signed in to change notification settings 
- Fork 4
          feat: handle empty-body functions in smir.json.
          #753
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| Is this a duplicate of #677 ? | 
| 
 I think it does the minimum necessary to avoid crashing on these things in input data (allocs) but does not model the data in any way. | 
        
          
                kmir/src/kmir/alloc.py
              
                Outdated
          
        
      | if TYPE_CHECKING: | ||
| from typing import Any | ||
| # No conditional typing-only imports needed currently | ||
| pass | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this can be deleted then?
| 
 If this PR merged, I can modify this one to avoid duplicity. | 
f535d86    to
    f8cf2c4      
    Compare
  
    365cc1f    to
    b5a7b38      
    Compare
  
    smir.json.
      | By logging the empty-body functions after reducing, we know that these functions wouldn't effect the result of the current spl-token verification (at least with current spec). | 
        
          
                kmir/src/kmir/kmir.py
              
                Outdated
          
        
      | has_missing = len(missing_body_syms) > 0 | ||
| _LOGGER.info( | ||
| f'Reduced items table size {len(smir_info.items)}; ' | ||
| f'missing-bodies-present={has_missing} count={len(missing_body_syms)}' | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should not output this unless has_missing is true?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, changed it!
fe3b24c    to
    407dc0b      
    Compare
  
    407dc0b    to
    c44ebc0      
    Compare
  
    c44ebc0    to
    c442188      
    Compare
  
    
Uh oh!
There was an error while loading. Please reload this page.